<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template header}
	<div id="app">
        <div id="shadow" style="display: none;"></div> 
        <header class="top">
        	<span>代理报表</span>
        	<div class="iconfont back"></div> 
        	<a href="{U('agent/index')}" class="iconfont back"></a> 
        	<a href="/service" class="right" style="display: none;">客服</a>
        </header> 
        <div class="main" s="[object Object]">
        	<div>
        		<div class="textMore dataType">
        			<em class="tag_choice_day">今天</em> 
        			<i class="iconfont"></i>
        		</div> 
        		<div class="_problemBox tag_choice_item" style="display: none;">
        			<div class="blackBg"></div> 
        			<div class="moreLayer">
        				<ul class="tag_choice_item_li">
        					<!--<li style="display: none;">
        						<a>选择登录帐号</a>
        					</li> -->
        					<li>
        						<a>今天</a> 
        					</li>
        					<p class="hr1px"></p>
        					<li>
        						<a>昨天</a> 
        					</li>
        					<p class="hr1px"></p>
        					<li>
        						<a>本月</a> 
        					</li>
        					<p class="hr1px"></p>
        					<li>
        						<a>上月</a> 
        					</li>
        				</ul> 
        				<ul class="tag_choice_close">
        					<li>
        						<a>取消</a>
        					</li>
        				</ul>
        			</div>
        		</div>
        	</div> 
        	<div class="searchBtn">
        		<div class="searchCon">
        			<input type="text" placeholder="下级报表查询" class="proxySearch">
        		</div> 
        		<a id="submitBtn">
        			<div class="submitTouch">
        				<i class="iconfont"></i>
        			</div>
        		</a>
        	</div> 
        	<div id="PageLoading" class="fullLoading" style="display: none;">
        		<div class="loadingCell">
        			<div class="iconLoadingCon">
        				<img src="http://imagess-google.com/system/mobile/lottery/loadingMobile.gif" alt="" class="loadingImg"></div></div></div> <div id="proxy3colCon" class="proxy3colCon" style="">
    					<ul class="PLSdetail">
    						<li><span>0.00</span>投注金额</li>
    						<li><span>0.00</span>中奖金额</li>
    						<li><span>0.00</span>活动礼金</li>
    						<li><span>0.00</span>团队返点</li>
    						<li><span>0.00</span>团队盈利</li>
    						<li><span>0.00</span>充值金额</li>
    						<li><span>0.00</span>提现金额</li>
    						<li><span>0</span>首充人数</li>
    						<li><span>0</span>注册人数</li>
    						<li><span>0</span>投注人数</li>
    						<li><span>2</span>下级人数</li>
    						<li><span>1024283.51</span>团队余额</li>
    						<li><span>0.00</span>代理返点</li>
    						<li><span>0.00</span>代理工资</li>
    						<li><span>0.00</span>代理分红</li> 
    					</ul>
        			</div>
        		</div>
        	</div>
 
    <script type="text/javascript">
    	$(".hd li").on("click",function(){
    		$(this).addClass("on").siblings().removeClass("on");
    		$(".dontSelect").hide();
    		layer.load(1,{
    			time:1000
    		});
    		setTimeout(function(){
    			$(".dontSelect").show();
    		},1000)
    	})
    	
    	//查询
    	$(".submitTouch").on("click",function(){
    		var val = $(".proxySearch").val();
    		if(!val){
    			layer.alert("请输入投注号码",{
    				title:'温馨提示'
    			})
    		}else{
    			//执行ajax请求查询
    			$(".dontSelect").hide();
    			layer.load(1,{
    				time:1000
	    		});
	    		setTimeout(function(){
	    			$(".dontSelect").show();
	    			$(".proxySearch").val("");
	    		},1000)
    		}
    	})
    	//用户选择哪天的记录
		$('.tag_choice_day').on('click', '', function (){
			$('.tag_choice_item').show();
		})
		$('.tag_choice_close').on('click', '', function (){
			$('.tag_choice_item').hide();
		})
    	// 查看哪个时间段的投注订单
		var choice_day = 'today';
		$('.tag_choice_item_li li').on('click', '', function (){
			var check = $(this).index();
			if(check == '0'){
				choice_day = 'today';
				$('.tag_choice_day').html('今天');
			}else if (check == '2'){
				choice_day = 'yesterday';
				$('.tag_choice_day').html('昨天');
			}else if (check == '4'){
				choice_day = 'benyue';
				$('.tag_choice_day').html('本月');
			}else if (check == '6'){
				choice_day = 'shangyue';
				$('.tag_choice_day').html('上月');
			}
			$('.tag_choice_item').hide();
		})
    </script>
       {template footer}
</html>
